package com.haoze.nurse.service.impl;

import com.haoze.common.response.Result;
import com.haoze.common.response.ResultGenerator;
import com.haoze.nurse.dao.PuncureChannleMapper;
import com.haoze.nurse.service.TaskBatchService;
import com.haoze.nurse.vo.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TaskBatchServiceImpl implements TaskBatchService {

    @Resource
    PuncureChannleMapper puncureChannleMapper;


    @Override
    public Result queryInfusionCenterList(String inpatNum) {
        List<PuncureChannleVo> puncureChannleEntities = puncureChannleMapper.selectInfoByIpatNum(inpatNum);
        return ResultGenerator.genOkResult(puncureChannleEntities);
    }
}